Hello there.
Welcome to this video.
In this video I will walk you through how to access the web console and scratch power which is built
into modern zulauf Firefox.
You will need to have the Mozilla Firefox web browser installed so you can follow along with this.
You do if you haven't got it installed.
A quick Google search will show you how to do that.
The console issue used to run or execute a single line of code is suitable if you just got a single
line of code to run and it can be accessed from any web browser.
If 12 key.
Moore's Web browsers have a console a web console which you can access using the F 12 key I'm going
to access the web console from my Some poor web page so I could add out to 12 or right click on the
page and click on inspect elements.
Then if I expand this a bit click on How I should expand it further and choose see the world console.
Click on console.
There are different things the tool does.
But what we focus on in this video is just the use of the console.
So I'll just drag that a bit.
So this this be console you can write a piece of code if he just got one line of code to execute.
He can do that.
So I'm just going to write a simple arithmetic calculating.
You going to do for class 5 and then he turned the keyboard.
So give me the answer of nine.
Four plus five line I'm going to do is drink
and just say hello.
So give him the result for the string and then give me a result for the addition by default list.
The theme that comes with the console is light.
I have changed my into a dog team.
If you like the may want to change it you click on this option here.
The tool box option and on the themes you can select the Dark team.
Chrysler use a duct tape.
If you want to like one eCom size default anyway so you don't need to change that.
We're going to access the scratch pad the scratch pad allows you to experiment with multiple lines of
javascript directly inside the web browser without writing any hishe to email or see a source code so
you just write your code inside as crash pad and run it and it all interact with a web browser to display
the results so to access the crash pad.
You should have an icon here so this will see the icons so if you click click on the cycle here that
is crash back.
If you haven't got this crash paradigm on this play if you click on the tool box options then scroll
down to waste a valuable tool box buttons.
Make sure the one for the scratch pad is checked.
If this chair then the issue is should pop up in the in the menu here so I'll just click on it to access
that right.
Hi this is my scratch pad.
Me me scratch pad it's launched you'll have some text here basically just giving you some tips on how
to use the the tool saw one going to do.
I'm going to write a few lines of code here and try and execute it inside the scratch pad.
I have a rating for line of could hear the first one is a prompt So it will prompt an answer question.
Second is confirm.
Again ask something occurred.
Second saw.
Second sort of lock.
Basically what this will do.
It will log what in between this person is it will love that to the console.
So the result of this line 14 quote We show up in the consul here.
And then the alert will show up inside the web browser the Confirm will show inside the web browser
the prompt will show inside the web browser.
Use using the scratch pad if you run the code you've got it.
We will execute all the code.
If Coleman wanted to run the first one you need to highlight it.
If not you will execute on the patent.
So you need to highlight if you low on a test one line of code or you can also use a console.
If you want a test just one line of code so it runs the code from top to bottom left to right.
That is how our job our script code runs.
So if I run this now you see that you will show the first one are quick on run the first one How are
you.
Hi Just say hi.
Q Second one asking a question do you want a master.
Yes.
Yes means javascript.
You can click.
So say no click okay.
Yep.
And then the third one is and then they got the third one a console got log which is this one here.
I appreciate your time is logged it to the console.
If you don't use it for that log it doesn't log the message on there.
So the console logs telling it to show this message here inside the console and then the final message
is the alert box with a message.
Thank you so much for watching.
See here.
So this is how you would use this scratch pad the console built in to the olah fire fork.
In this video I'm showing you how to access the web console and the scratch pad which is built in to
Mozilla Firefox.
Thank you so much for watching.
I always value your time and hope to see you again soon.
Take care.
Bye for now.